package com.wjbgn.bsolver.server.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.wjbgn.stater.dto.PageDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.time.LocalDateTime;
import java.util.List;

/**
 * Description:
 * Create Date: 2022-04-16T16:09:33.187
 *
 * @author wjbgn
 * @version 1.0
 */
@Data
@ApiModel(value = "BugRecordDTO", description = "数据传输对象BugRecordDTO")
public class BugRecordDTO extends PageDTO {

    /**
     *
     */
    @ApiModelProperty(notes = "")
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private String id;

    /**
     * 问题名称
     */
    @ApiModelProperty(notes = "问题名称")
    private String title;

    /**
     * 问题描述
     */
    @ApiModelProperty(notes = "问题描述")
    private String description;


    /**
     * 问题描述
     */
    @ApiModelProperty(notes = "问题内容")
    private String content;

    /**
     * 问题提出者id
     */
    @ApiModelProperty(notes = "问题提出者")
    private String username;

    /**
     * 问题状态：1已提出未回答，2已回答，3已关闭
     */
    @ApiModelProperty(notes = "问题状态：1已提出未回答，2已回答，3已关闭")
    private Integer status;

    /**
     * 问题分类，逗号分隔
     */
    @ApiModelProperty(notes = "问题分类，逗号分隔")
    private String category;

    /**
     *
     */
    @ApiModelProperty(notes = "")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    /**
     *
     */
    @ApiModelProperty(notes = "")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    /**
     * 是否删除，1是，0否
     */
    @ApiModelProperty(notes = "是否删除，1是，0否")
    private Integer isDelete;

    /**
     * 查看数量
     */
    private Integer views;

    /**
     * 回答数量
     */
    private Integer answers;

    private String createTimeStr;

    private List<String> categoriesName;

    private String searchCondition;

    private String nickname;
}
